# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-obfuscator
_pkgname=${pkgname//-/_}
pkgver=0.0.2
pkgrel=1
pkgdesc='Python-based obfuscator.'
arch=('any')
url='https://github.com/davidteather/python-obfuscator'
license=('MIT')
depends=('python' 'python-regex')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('fb709bd3817444f3ab8a087b0db5e592285e738f96521974d69af833919b0531a0f3f63b3bae78fccff1928af7cedd768b7c2117d895fd5dab13553c8008e714')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

